package cn.edu.hqu.javaee.springboot_h2.repository;

import cn.edu.hqu.javaee.springboot_h2.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User,Long> {
    List<User> findByUsername(String username);
    User findById(long id);
}
